proc invite {nick handle host chan otbn1} {
global botnick home 
if {$otbn1 == ""} {
  putserv "NOTICE $nick :ERROR - Invalid Syntax - Should Be - (/msg) $botnick invite <#channel> <nick>"
  return 0
  }
if {![botisop $chan]} {
  putserv "NOTICE $nick :ERROR - Bot dosen't have op status (+o) in $chan"
  return 0
  } 
if {[onchan $otbn1 $chan]} {
  putserv "NOTICE $nick :ERROR - User on Channel - $otbn1 is currently on $chan"
  return 0
  }
  putlog "!$nick ($host)! invite $chan $otbn1"
  putserv "NOTICE $nick :Invitied $otbn1 to $chan"
  putserv "INVITE $otbn1 :$chan"
  putserv "NOTICE $otbn1 :\002$nick\002 ($host) used me to invite you to $chan"
  putserv "PRIVMSG $home :\002$nick\002 ($host) requested me to invite \002$otbn1\002 to $chan"
  putserv "NOTICE @$chan :\002$nick\002 ($host) requested me to invite \002$otbn1\002 to $chan"
  }


